package com.smzd.projforge.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.smzd.core.dao.AbstractDao;
import com.smzd.core.mappers.IMapper;
import com.smzd.projforge.domain.Render;
import com.smzd.projforge.mappers.RenderMapper;

@Component
public class RenderDao extends AbstractDao<Render> {
    @Autowired
    private RenderMapper mapper;

    @Override
    protected IMapper<Render> getMapper() {
        return mapper;
    }

    public List<Render> getAllRendersByProjectId(int projectId) {
        return mapper.getAllRendersByProjectId(projectId);
    }
}